package service.impl;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import pojo.User;
import service.UserService;

import java.util.List;

/**
 * @author 72803
 */
public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl(); //可写在方法里或外
    @Override
    public List<User> findAll() {

        return userDao.findAll();
    }
}

// ServiceImpl：对Service接口的实现层，完成具体的业务逻辑处理。